Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Allow more characters in anchor following module reference #1220

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

Lysxia
Copy link
Contributor

@Lysxia Lysxia commented Jul 27, 2020

Currently the only allowed characters in a "module#anchor" anchor are alphanums plus [.#\\]. In particular it rejects hyphens -, which are pretty common in anchors.

This PR refines the parsing of anchors in modules to allow more characters, and also reject spaces (because they're technically not allowed by HTML).

Copy link
Member

@alexbiehl alexbiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is looking good.

@alexbiehl alexbiehl merged commit 1bedd20 into haskell:ghc-8.10 Dec 8, 2020
alexbiehl-gc pushed a commit to alexbiehl/haddock that referenced this pull request Dec 8, 2020
garetxe pushed a commit to garetxe/haddock that referenced this pull request Jan 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants